package net.zjitc;

import junit.framework.TestCase;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class PersonTest {
@Test
public  void  test(){
   ApplicationContext context = new ClassPathXmlApplicationContext("springContext.xml");
    Person person = (Person) context.getBean("person");
    person.setId(123);
    person.setName("小娃");
    System.out.println(person);
}
}